package com.huweilong.demo;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 是阿秋啊
 * @date 2022/04/09 16:00
 **/
public class DateDemo {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        System.out.println(df.format(date));
    }
}
